using UnityEngine;
using System.Collections;

public class WowadiusGlobal : MonoBehaviour
{
	public static WowadiusPlayerStats CurrentPlayerStats = new WowadiusPlayerStats ();
	public static WowadiusWorldInfo WorldInfo = new WowadiusWorldInfo();
	
	// Use this for initialization
	void Start ()
	{
		//Create world
		buildWorld();
		
		//Load player stats
		loadPlayerStats ();
	}
	
	/// <summary>
	///Load the player's stats 
	/// </summary>
	private void loadPlayerStats ()
	{
		//TODO: Hard code player stats
		CurrentPlayerStats.SpeedStep = 5;
		CurrentPlayerStats.MaxSpeedLevel = 5;
		CurrentPlayerStats.BulletForce = 500f;
		CurrentPlayerStats.RateOfFire = 0.5f;
	}
	
	/// <summary>
	///Create world parameter 
	/// </summary>
	private void buildWorld(){
		WorldInfo.WorldHitPlaneDistance = 10f;
		WorldInfo.WorldWidthPerimeter = 6f;
		WorldInfo.WorldHeightPerimeter = 7f;
	}
}
